import request from '@/utils/request'

export function getOrderList(params) {
  return request({
    url: '/order/all',
    method: 'get',
    params
  })
}

export function getOrderDetail(id) {
  return request({
    url: '/order/' + id,
    method: 'get'
  })
}

// export function exportFile(orderIds) {
//   return request({
//     url: '/order/export',
//     method: 'post',
//     orderIds

//   })
// }

export function exportFile() {
  return request({
    url: '/order/export',
    // 这里也可以是 blob
    responseType: 'blob',
    method: 'get',
    headers: {
      'Content-Type': 'application/json'
    }

  })
}

